/* ==========================================================================
   Project Detail
   Used only by the current project detail HTML
   ========================================================================== */

:root {
  --shadow-card: 0 10px 24px rgba(28, 63, 114, 0.1);
}

.ArticleView {
  margin: 0;
  text-align: right;
}

/* ==========================================================================
   Top Section: Project Information + Main Image
   ========================================================================== */

.project-overview {
  padding: 60px 32px 45px;
  background: var(--color-background, #fff);
}

.project-overview__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: stretch;
}

/* Project Information */

.project-info {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card, 12px);
  overflow: hidden;
}

.project-info::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 3px;
  background: var(--secondary-color, #c99b44);
}

.project-info__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.project-info__small {
  color: var(--color-ink-400, #8b929e);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  direction: ltr;
  text-align: right;
}

.project-info__head strong {
  color: var(--color-primary, #0a1830);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.project-info__items {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.project-info__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border, rgba(10, 24, 48, 0.1));
}

.project-info__item:last-child {
  border-bottom: 0;
}

.project-info__label {
  flex-shrink: 0;
  color: var(--color-ink-500, #667085);
  font-size: 13px;
  font-weight: 500;
}

.project-info__value {
  color: var(--color-ink-900, #162033);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: left;
}

/* Main Image */

.project-cover {
  position: relative;
  min-width: 0;
  height: 350px;
  overflow: hidden;
  background: var(--color-navy-100, #eef2f6);
  border-radius: var(--radius-card, 12px);
}

.project-cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   About Project
   ========================================================================== */

.project-description-section {
  padding: 45px 32px 90px;
  background: var(--color-background, #fff);
}

.project-description-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.ArticleView .section .headding {
  font-size: 15px;
  color: #143d61;
  background-color: #fbfbfb;
  border: solid 1px #f5f5f5;
  height: 40px;
  line-height: 40px;
  margin-bottom: 15px;
  padding-right: 17px;
  font-weight: bold;
  border-right: solid 3px #6f6e6e;
  margin-top: 46px;
  border-radius: 14px;
}

.ImagesItem img {
  border-radius: 14px;
}

.ImagesItem {
  list-style: none;
  margin: 0;
}

.ImagesItem li {
  list-style: none;
}

.project-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.project-section-heading__number {
  padding-top: 5px;
  color: var(--color-gold-dark, #9b742f);
  font-size: 12px;
  display: none;
  font-weight: 700;
}

.project-section-heading__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--color-ink-400, #8b929e);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  direction: ltr;
  text-align: right;
}

.project-section-heading__title {
  margin: 0;
  color: var(--color-primary, #0a1830);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

a:visited {
  color: #0000;
}

.project-description {
  min-width: 0;
  color: var(--color-ink-900, #162033);
  font-size: 15px;
  line-height: 2.2;
  text-align: justify;
}

.project-description p {
  margin: 0 0 18px;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-description img,
.project-description video,
.project-description iframe,
.project-description table {
  max-width: 100%;
}

.project-description img {
  height: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .project-overview {
    padding: 50px 24px 40px;
  }

  .project-overview__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-cover {
    order: -1;
    height: 320px;
  }

  .project-info {
    padding: 26px 28px;
  }

  .project-description-section {
    padding: 40px 24px 75px;
  }

  .project-description-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 575px) {
  .project-overview {
    padding: 36px 16px 30px;
  }

  .project-cover {
    height: 230px;
  }

  .project-info {
    padding: 22px 20px;
  }

  .project-info__head {
    margin-bottom: 14px;
  }

  .project-info__item {
    padding: 12px 0;
  }

  .project-description-section {
    padding: 32px 16px 60px;
  }

  .project-section-heading__title {
    font-size: 26px;
  }

  .project-description {
    font-size: 14px;
    line-height: 2.1;
  }
}

.projects-listing-section {
  margin-top: -105px;
}

.projects-listing-section-all {
  margin-top: 0 !important;
}

/* ==========================================================================
   Projects Listing — results grid + cards
   ========================================================================== */
.projects-listing-section {
  padding: 32px 32px 64px;
  background: var(--color-background);
}

.project-list-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-list-card:hover,
.project-list-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.project-list-card__image {
  position: relative;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.project-list-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease;
}

.project-list-card:hover .project-list-card__img {
  transform: scale(1.05);
}

.project-list-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.project-list-card__name {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 700;
}

.project-list-card__location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  color: var(--color-ink-500);
  font-size: 13px;
}

.project-list-card__location svg {
  flex-shrink: 0;
  color: var(--color-ink-400);
}

/* .project-card__tags / __tag / __footer / __area / __cta are reused
   as-is from the featured-projects slider component above. */

.projects-empty-state {
  padding: 64px 24px;
  color: var(--color-ink-500);
  text-align: center;
}

.projects-empty-state__title {
  margin-bottom: 6px;
  color: var(--color-ink-900);
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   Projects Listing — pagination
   ========================================================================== */
.projects-range-label {
  margin-top: 24px;
  color: var(--color-ink-500);
  font-size: 13px;
  text-align: center;
}

.pagination-custom {
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* margin: 40px 0 0; */
  padding: 0;
  list-style: none;
}

.pagination-arrow,
.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 4px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-ink-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-arrow:hover,
.pagination-number:hover {
  border-color: var(--color-navy-500);
  color: var(--color-primary);
}

.pagination-number.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination-arrow:disabled {
  cursor: default;
  opacity: 0.4;
  pointer-events: none;
}

/* Mobile: inner pages */
@media (max-width: 767.98px) {
  .page-hero {
    padding: 40px 16px 32px;
    min-height: 16vh;
  }

  .projects-filter-panel {
    padding: 20px 16px 22px;
  }

  .project-list-card__image {
    height: 180px;
  }

  .pagination-custom {
    margin-top: 28px;
  }
}

/* ==========================================================================
   Project Detail — hero
   ========================================================================== */
.project-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 46vh;
  overflow: hidden;
  background-color: var(--color-navy-950);
}

.project-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 24, 48, 0.92),
    rgba(10, 24, 48, 0.55) 55%,
    rgba(10, 24, 48, 0.3)
  );
}

.project-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 56px 32px 96px;
}

.project-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
}

.project-hero__location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.project-hero__location svg {
  flex-shrink: 0;
  color: var(--color-gold);
}

/* ==========================================================================
   Project Detail — quick-facts card (overlaps the hero bottom edge)
   ========================================================================== */
.quick-facts-wrap {
  position: relative;
  z-index: 3;
  margin-top: -4px;
  padding: 0 32px;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-surface);
  margin-top: -180px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 8px;
}

.quick-facts__item {
  flex: 1 1 0;
  min-width: 150px;
  padding: 6px 20px;
  text-align: center;
}

.quick-facts__divider {
  align-self: stretch;
  width: 1px;
  margin: 2px 0;
  background: var(--color-border);
}

.quick-facts__label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-ink-500);
  font-size: 12px;
  font-weight: 600;
}

.quick-facts__value {
  display: block;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
}


/* ==========================================================================
   Projects Listing — filter panel
   ========================================================================== */
.projects-filter-section {
  padding: 40px 0px 20px;
  margin-bottom: 40px;
}

.projects-filter-panel {
  padding: 24px 28px 28px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 42px;
}

.filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-panel__title {
  margin: 0;
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 700;
}

.filter-panel__count {
  font-size: 13px;
  color: var(--color-ink-500);
}

.filter-panel__count strong {
  color: var(--color-primary);
  font-weight: 700;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 18px;
}

.search-input-wrap__icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  color: var(--color-ink-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  background: #f6f7f93d;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-ink-900);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.search-input::placeholder {
  color: var(--color-ink-400);
}

.search-input:focus {
  background: var(--color-surface);
  border-color: var(--color-navy-500);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-navy-100);
}

.filter-group__label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-ink-500);
  font-size: 12px;
  font-weight: 600;
}

.filter-select {
  width: 100%;
  height: 44px;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 10px;

  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-900);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.filter-select:focus {
  background-color: var(--color-surface);
  border-color: var(--color-navy-500);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-navy-100);
}

.filter-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.filter-chip__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-chip__remove:hover {
  background: rgba(255, 255, 255, 0.35);
}

.filter-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-ink-500);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-clear-btn:hover {
  color: var(--color-red);
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.375rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  margin-bottom: 0;
}


/* ==========================================================
   NEWSARTICLES / PROJECT DETAIL
   Comments & Post Comment
   ========================================================== */

.ArticleView {
  --comment-primary: var(--color-primary, #1c3f72);
  --comment-gold: var(--secondary-color, #b8862f);
  --comment-border: #e6eaf0;
  --comment-muted: #697586;
  --comment-bg: #f8fafc;
}

/* ------------------------------------------
   Comment sections after project images
------------------------------------------ */

.ArticleView .project-description-section
[HASCOMMENTSENABLED] {
  display: block;
}

/* Direct wrappers generated by the template */
.ArticleView .project-description-section
.container-xl-custom > div:not(.project-description-layout):not(.section) {
  margin-top: 28px;
}

/* ------------------------------------------
   Comment section headings
------------------------------------------ */

.ArticleView .project-description-section
.container-xl-custom > div:not(.project-description-layout):not(.section) > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--comment-border);
  color: var(--comment-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

/* Gold decorative line */
.ArticleView .project-description-section
.container-xl-custom > div:not(.project-description-layout):not(.section) > div:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: var(--comment-gold);
  flex-shrink: 0;
}

/* ------------------------------------------
   Comment form card
------------------------------------------ */

.ArticleView .project-description-section
.container-xl-custom > div:not(.project-description-layout):not(.section) > div:nth-child(2) {
  background: #fff;
  border: 1px solid var(--comment-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(28, 63, 114, 0.055);
  direction: rtl;
}

/* Form labels */
.ArticleView .project-description-section
label {
  display: inline-block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

/* Inputs and textarea */
.ArticleView .project-description-section
input[type="text"],
.ArticleView .project-description-section
input[type="email"],
.ArticleView .project-description-section
input[type="url"],
.ArticleView .project-description-section
textarea,
.ArticleView .project-description-section
select {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dce2e9;
  border-radius: 8px;
  background: #fff;
  color: #243247;
  font-size: 14px;
  line-height: 1.8;
  font-family: inherit;
  direction: rtl;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Make textarea comfortable for writing */
.ArticleView .project-description-section textarea {
  width: 100%;
  min-height: 135px;
  resize: vertical;
}

/* Focus state */
.ArticleView .project-description-section
input[type="text"]:focus,
.ArticleView .project-description-section
input[type="email"]:focus,
.ArticleView .project-description-section
input[type="url"]:focus,
.ArticleView .project-description-section
textarea:focus,
.ArticleView .project-description-section
select:focus {
  outline: none;
  border-color: var(--comment-primary);
  box-shadow: 0 0 0 3px rgba(28, 63, 114, .1);
}

/* ------------------------------------------
   Submit buttons
------------------------------------------ */

.ArticleView .project-description-section
input[type="submit"],
.ArticleView .project-description-section
button[type="submit"],
.ArticleView .project-description-section
.dnnPrimaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 26px;
  border: 1px solid var(--comment-primary);
  border-radius: 8px;
  background: var(--comment-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.ArticleView .project-description-section
input[type="submit"]:hover,
.ArticleView .project-description-section
button[type="submit"]:hover,
.ArticleView .project-description-section
.dnnPrimaryAction:hover {
  background: #14345c;
  border-color: #14345c;
  color: #fff;
  transform: translateY(-1px);
}

/* ------------------------------------------
   Existing comments
------------------------------------------ */

.ArticleView .project-description-section
.comment,
.ArticleView .project-description-section
.Comment,
.ArticleView .project-description-section
.comment-item,
.ArticleView .project-description-section
.CommentItem {
  padding: 20px 22px;
  margin-bottom: 14px;
  border: 1px solid var(--comment-border);
  border-radius: 10px;
  background: var(--comment-bg);
  color: #344054;
  line-height: 2;
  font-size: 14px;
}

/* Comment author */
.ArticleView .project-description-section
.comment-author,
.ArticleView .project-description-section
.CommentAuthor,
.ArticleView .project-description-section
.comment-user {
  color: var(--comment-primary);
  font-size: 14px;
  font-weight: 700;
}

/* Comment date and metadata */
.ArticleView .project-description-section
.comment-date,
.ArticleView .project-description-section
.CommentDate,
.ArticleView .project-description-section
.comment-meta {
  color: var(--comment-muted);
  font-size: 12px;
}

/* Links */
.ArticleView .project-description-section
.comment a,
.ArticleView .project-description-section
.Comment a,
.ArticleView .project-description-section
.comment-item a {
  color: var(--comment-primary);
  transition: color .2s ease;
}

.ArticleView .project-description-section
.comment a:hover,
.ArticleView .project-description-section
.Comment a:hover,
.ArticleView .project-description-section
.comment-item a:hover {
  color: var(--comment-gold);
}

/* ------------------------------------------
   Responsive
------------------------------------------ */

@media (max-width: 767px) {
  .ArticleView .project-description-section
  .container-xl-custom > div:not(.project-description-layout):not(.section) {
    margin-top: 24px;
  }

  .ArticleView .project-description-section
  .container-xl-custom > div:not(.project-description-layout):not(.section) > div:first-child {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .ArticleView .project-description-section
  .container-xl-custom > div:not(.project-description-layout):not(.section) > div:nth-child(2) {
    padding: 18px 16px;
  }

  .ArticleView .project-description-section
  .comment,
  .ArticleView .project-description-section
  .Comment,
  .ArticleView .project-description-section
  .comment-item,
  .ArticleView .project-description-section
  .CommentItem {
    padding: 16px;
  }
}

input#dnn_ctr1672_NewsArticles_ViewArticle_ctl11_btnAddComment {
    background: #b8862f;
    color: #FFF;
    padding: 8px 16px;
    border: 1px solid #b8862f;
    outline: none;
    border-radius: 12px;
    transition: all 250ms ease-in;
}

input#dnn_ctr1672_NewsArticles_ViewArticle_ctl11_btnAddComment:hover {
    background: transparent;
    color: #b8862f;
    transition: all 250ms ease-in;
}

#Notify {
    display: none;
}